from django.shortcuts import render

# Create your views here.

from django.shortcuts import HttpResponse


def index(request):
    print('method:', request.method)
    print(request.GET)
    print(request.GET.get('name'))
    print(request.POST)
    print('path:', request.path)
    print('get_full_path():', request.get_full_path())
    # return HttpResponse('OK')
    # return render(request, 'index.html')
    import datetime
    ctime = datetime.datetime.now()
    return render(request, 'index.html', {'timer': ctime})
